package com.clouddot.baipai.contract;


import com.clouddot.baipai.http.entity.response.bindBanPaiResponse;
import com.clouddot.baipai.http.entity.response.getAllClassResponse;

import org.wxy.sdk.base.IBaseModel;
import org.wxy.sdk.base.IBasePresenter;
import org.wxy.sdk.base.IBaseView;

import java.util.ArrayList;

import rx.Observable;

/**
 * Created by wxy on 2018/05/27.
 *
 * @author wxy
 */
public interface ISettingActivityContract {

    interface IPresenter extends IBasePresenter {
        void bindBanPai(String ClassId, String carddevid);

        void getAllClassList();
    }

    interface IModel extends IBaseModel {
        Observable<ArrayList<getAllClassResponse>> getAllClassList(String acttype);

        Observable<bindBanPaiResponse> bindBanPai(String acttype, String ClassId, String CardDeviceId);

    }

    interface IView extends IBaseView {
        void success(int flag, Object object);

        void fail(int flag, String errMsg);
    }
}
